package com.kevin.springboot.demos.exception;

/**
 * 服务异常
 * @author: wangyong
 * @date: 2019/8/17 13:51
 */
public class ServiceException extends RuntimeException {

	private String code;

	private String msg;

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	public ServiceException(String code ,String message) {
		super(message);
		this.code= code;
		this.msg = message;
	}
}
